#ifndef _mr_config
#define _mr_config

#define Max_Line_Length  200
typedef struct mr_conf_attr_s mr_conf_attr_t ,*mr_conf_attr_p;
typedef struct mr_conf_sec_s mr_conf_sec_t,*mr_conf_sec_p;
typedef struct mr_conf_s mr_conf_t,*mr_conf_p;

//to do  :
// mr_conf_attr have key,val   
// mr_conf_sec  have list of mr_conf_attr 
// mr_conf      have list of mr_conf_sec


int mr_conf_load(mr_conf_p * pconf,char* filename);
int mr_conf_get(mr_conf_p pconf ,char* psection,char* pkey,char** pvalue);
int mr_conf_set(mr_conf_p pconf ,char* psection,char* pkey,char* pvalue);
int mr_conf_get_sec_attrb(mr_conf_p pconf,char *psec,mr_conf_attr_p ** pattr);
int mr_conf_save(mr_conf_p pconf);
void mr_conf_free(mr_conf_p pconf);


#endif
